package File;

import java.io.File;

//删除文件或附录
public class DeleterFileDirDemo {
    public static void main(String[] args) {
        File f= new File("./test1txt");
         if (f.exists()){
             f.delete();
             System.out.println("1");
         }else {
             System.out.println("2");
         }
    }
}
